package com.yuju.common.util.http;
import java.util.HashMap;
import java.util.Map;

/**
 * Cookie管理类
 * @author: xue
 * @date 2017-01-07
 */
public class HttpClientCookieManager {
	
	private static Map<String,String> coocieMap =new  HashMap<String, String>(); // 用来管理cookie
	
	/**
	 * 获取token
	 * @author xue
	 * @date 2017-01-07
	 * @param tokenLabel
	 * @return token
	 */
	public static String getToken(String tokenName){
		return  coocieMap.get(tokenName);
	}
	
	/**
	 * 添加token
	 * @author xue
	 * @date 2017-01-07
	 * @param tokenLabel
	 * @param tokenVal
	 */
	public static void storeToken(String tokenName,String tokenVal){
		coocieMap.put(tokenName, tokenVal);
	}

}
